package com.example.lushudao_admin.entity;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import net.sf.json.JSONObject;
import org.springframework.stereotype.Component;

@Component
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class Comment {
    private int comment_id;
    private int user_id;
    private String  user_name;
    private int scenic_release_id;
    private String scenic_name;
    private String comment_time;
    private String comment_content;
    private int comment_good;

    @Override
    public String toString() {
        return JSONObject.fromObject(this).toString();
    }

}
